use to upload image and respond with different size request