Small fix to dispose Graphics2D.