Color scale algorithm and B&W image coloring