spec => { img_1 => { gen_files => { img_1_thmb_1 => sub { gen_thumb({w=>100, h=>100}) }, img_1_thmb_2 => sub { gen_thumb({w=>50, h=>50}) }, } } }