able to upload image and generate thumbnail