Cleanup a portion of the image upload code for vSphere