If the content type is "document," it simply adds a generic icon. If the content type is "image," it attempts to generate a thumbnail using the underlying library, Image Magick or GD. If the underlying library doesn't support generating a thumbnail for this image type, you'll get a "PB" error when you attempt to upload an image of this type.