more conservative REGENERATE_FILE_WITH_IMAGEFILES_NOT_WITHIN