added missing Dispose calls for graphics resources