connecting datgui - adding rustys code to update teh canvas when values change - change threshold range max to 255