added some bitmap functions