Some typechanges for bitmap update function