Optimise checking of existing image data.