Fixed another bug related to small images