changes for multiple type image upload.