Changes for image upload implemented with v2 apis