If shuffle mode is toggled, assume that the 2nd last image was current, instead of the last

The last usually comes from the pre-fetch of the next image, i.e. is the
one that the user wants to see. This does not apply if --low-memory is
used though.