fix some problems in imageviewtest