We know that the fractional preview sizes exist on the phone of whoever reported this bug. If that person was to try this patch (without doing a full reflash that wiped out the database) then they would still see the fractional image size without this code.

The fractional image size bug has existed for months or years and never caused problems until now.  (It only affects images that don't have EXIF previews, and that doesn't get tested as much as the JPEG photo case.)