Improved Animated GIF Support

- Animated GIFS are now loaded differently and use an Octree Quantizer
so now more types of animated gifs are displayed probably.
- Zooming in with the mouse wheel is now zooms in based on the image
center, hold CTRL to zoom based on the top-left like before.
- Fixed problem where images snap back to an old position in some cases.