Save photo to server and sd card