added s3 ajax functions and html form to submit image