Reduce copying of data
Add support to set the threshold for each RGB channel separately
Create new deploy