fixed image uploading issue