#3868: Prevent non-images from appearing in library