locate-thumbnail: early check for low-res master images

This saves a little time in cases where the master files are the same as
the thumbnail files