fix some bugs about ImageAnalysis