implement pics to file