fixed pan and zoom for gifs