fixed #151: GIF size checking