Should work for both array and NodeList photos and added 0 shortcut for last photo