uploading image with http basic auth