display image if attachment is image