Using media types instead of filename extension
Merge pull request #4 from trygve-lie/mimetype

Use mediatype in dataurl instead of filename extension