[Olena-patches] 1311: Add a new border computation mode and change image_if meaning.