move truePhoto object to layout script