add transaction for upload_image func