GIF transparent frames overlapping

Description

Summary of the bug: Transparent gifs are having frames overlap previous ones. If the stats mode is set as single then all frames will overlap the previous frames. If stats mode is full or diff then only the first frame will remain and be overlapped by each frame.