Let's say there are 3 photos in a post. I click on the second photo (#2), and it opens. Then I go straight to the next photo (#3), still in photo-viewing mode.
When I press the download button, which opens the photo in a new tab, it opens photo #2 in the new tab, not photo #3.
.
(Sorry about the bad wording.)