Fixes #2244 by checking if image already is in the `data:` format.
Attach a file by drag & drop or click to upload