Fixes image files not being saved with the right mime-type
Merge branch 'feature/image-header-bugfix' into develop