returning the images properly