switching DeleteObject to ReleaseDC because I'm a dummy