Changed Image upload to use CURL file method