Create utility function save_uploaded_image()