updated trigger for save image