Template is either a string or a function that defines how items of Dataview will be rendered. The template is applied to each item. In case of string template, you need to set properties names between # #. When an item is rendered, the property value of an item will be set instead of #…#.
the following are my demo codes on how to load an image, hope it helps you.
private void button1_Click(object sender, EventArgs e)
{
string fileName = “c:/Sample.png”;
REImage reImage = REFile.OpenImageFile(fileName);
REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder());
}