The ruby and ruby on rails code for Chromaroma