zoom and pan, testing with emulator