Support pdf and some image types to be shown