Make sure that you dispose any Graphics objects you create. For short-lived, disposable objects like that you should always use a Using block.