Coding of Images Using BSP Trees