Using 'or' instead of 'and' in image check