Thank you for the reply! After adding the code (and taking out the other code from the other solution), it still seems to be showing the photos:
(Note, I also tried it with the other code from the other solution, but it still appeared the same as the photo from my first post)

