don't dispose of graphics context twice