Thor script for generating photo essays