Using pinned memory for bitmap