formatting the images.