made way to preview picture attachments and download attachments