Images which exceed width and height limits are now properly resized.
Remove no longer needed EXIF rotation code.
Updated PHP code, fixed issue dealing with animated gif's.