Fixed bug in putting images.