Layered painting of obstacles implemented