do detach/attach for LoadBitmap