libfreerdp-gdi: fix and cleanup new bitmap update code