found a bug that only showed up when an image's height was not its width! ugh.