added save processed image functionality@