fixed passing the image to the view