Flask API upload image and save to file.