remove hardcoded image mimetype, add logging of errors
rename add_map