support for uploading images from gallery