Basic frontend support for image attachments
Add support for cbc encryption