updating events for zooming and panning, generate bitmap, misc