prepare the images