implemented auto update of photos