IOPs: cleanup histogram after switching images
Merge pull request #580 from LebedevRI/fix-noncurrent-histogram

IOPs: cleanup histogram after switching images