Added option to save image in local folder