Fix Imagick get size for animated gif

Instead of using last frame and getting size on it, use
first one which always has right width and height.