fixing the issue in uplaod images.