Making small changes in the measurement API.
Adding 'PUT' request for image and it's testing.