Fixed an issue where some images would report wrong sizes.