var stage = acgraph.create("container");
.moveTo(stage.width() / 2, 0)
.lineTo(stage.width() / 2, stage.height());
stage.text(20, 0, "Stretch image");
stage.rect(2, 18, stage.width() / 2 - 4, stage.height() - 22)
src: "https://static.anychart.com/images/kitty.png",
stage.text(stage.width() / 2 + 20, 0, "Pattern image");
stage.rect(stage.width() / 2 + 2, 18, stage.width() / 2 - 4, stage.height() - 22)
src: "https://static.anychart.com/images/kitty.png",