correctly store the images.