saving pictures to file
added picture support