using pandas on extract_pigments, for using .txt files instead .csv