Binary drawing works

Detection and binary drawing works.
Mapping values to a gradient image needs to be added.