Fixed a crash when image was under min w/h