Save image func

can save output photo