Added zooming and translating functionality.