fix bug in upload single image