Removed image flicker for GIFs.