Added color extraction module to motion analysis code