Add setContentType to CURL and partial commit for image object