Added a photo element with image preview.