Refactor to be able to change handler on click on decode/encode buttons easily, add a choice between NB or color img (not implemented)
Add implementation of choice between NB and color img encoding