Fix minor bugs related to zoom functions. Zoom relative to mouse position can now be performed without strange jumps on image.