Initial zoom out panning code