adjusted sumtracker to take width, height dimensions from a global in globals, and now sumtracker clears previous renderings before updating the sum