Fixed nonexistant variable
Attempt to fix crash when Imagick can't open image
Stopped comparing histograms if there are no histograms
Updated Image class to maintain transparency
Fixed bug where revise option wasn't shown to logged in users if there are no revisions
Fixed error when uploading a revision
Fixed bug where image thumbnails could be squashed
Improved the efficiency of image optimization and analyzation code, made histogram comparisons more strict
Changed web image size to 700 (faster histogram creation)
Made histogram matching stricter based on real world cases
Improved thumbnails so that wide images have their full height used
Fixed problem with last commit
Fixed ratio cropping
Fixed bug where tags with a leading or trailing space would not be associated with media correctly