Move bitmap functions into Bitmap module