save converted images in directory