improve the accuracy for image extracting