added picture_tmp attribute to photos