Fixed raw binary files being sent as plain text

A minor change that makes klaus send images etc using the correct mimetype instead of always using text/plain