Ensure id attr is placed on figure, not photo directive