Resolve the image upload popup bug.