adding coordinate to clear method to clear a specific rect of btmap
adding dirty rect for rendering