[WIP] Send raw image data in share mail. Fixes #9103

See https://github.com/owncloud/core/issues/9103

@MorrisJobke @jancborchardt @icewind1991