Fixed bug with small images.