added ImageType support in uploader