separating image upload