save images in directory named after log