fixed getImage bug.