added automatic photo script