Basic zoom implementation.
Some fixes in the zoom code.