Add util for working with bitmaps