setup dragonfly to save image