update photo gen script