Attempt at a better not_if for image import