fix size detection on some animated gifs