added endpoint for image upload