test code for image upload