[% IF problem.photo %] [% photo = problem.photos.first %] [% data = problem.get_first_image_og %] [% ELSE %] [% END %]