save photo in directory