fixed image uploading, and display inheader

this is where the file is actually saved, do you have 'UPLOAD_DIR' set in your config? image_file is a werkzeug.datastructures.FileStorage object. They can be saved by calling their  save method with a filename to save to so ''' file_path = os.path.join(current_app.config['UPLOAD_DIR'],filename)
                 image_file.save(file_path)''' means save the file to a name that is a combination of app.config['UPLOAD_DIR'] and the filename