update ui and save images