Updated code to show images on page refresh if there are existing images
uploaded by the user.