Fixed zooming code. Its still not working quite right