Enable skipping to a specified image for directories as well.

This feature was available for video before, but is also useful for a directory with thousands of images.

Also fix a logic warning with not explicitly specifying the precendence for && and || ... not sure the this is correct yet, since I have to guess what the intention is.