Only redraw shapes when binning parameters change.
Applied cleaned up refreshImage from Eric.
Merge pull request #1 from briehanlombaard/refresh-shapes-in-dobin

Only redraw shapes when binning parameters change.