That's the icon for photos. When on, in the lock screen, it's used to start and stop a slideshow. You may have started a slideshow while viewing a photo album. You should be able to turn it off from inside the photo app, there should be a "slideshow" button on the top right when opening an album. Also look around in "Settings > Picture frame" or Settings > Photos.