counter for first photo was wrong