rewrite savePic and saveGood action