Created a depth system for sorted drawing