CHANGED:applied the default save image file function