Framework for a zoom/pan feature