making the images dynamic