gif resizing fixes