Reject unsupported images
This MR creates attachments in the database before the previews are shown. If the attachments are not send, they will be deleted again. Images that are too big or in an unsupported format are rejected.
Image previews are not loaded from content Uris, but already from the database.
Closes #1468 (closed)