[Olena-patches] milena r1315: Add tests for border resize with image_if and sub_image