save uploaded image to public folder