Renamed uploadImage() to saveImage() for accuracy