Added feature to save image as file