Adding SaveAs function and Grayscale function