refactor examples to use official headers
update docs
separate the concepts of color and image_format