working on debug for image upload for amazon on testing env