implemented my own very basic version of looking through stack of pictures