working photo chain, upload and save