Don't process directories that do not contain images.