To be able to reuse the common code from image and protobuf in cpt2 converter I need the code to be solidified on some self-enough objects. Thus image and protobuf constants are yanked out. Please take a look.