Filtering based on information loss and coloring. Drawing code needs
correction.