Simplify config file a little. Make image source generation an instance method of Photo object.