-var image = new dali.ResourceImage( { url:"my_image.png" } );
-
-var imageActor = new dali.ImageActor( image );
-
+// Create a resource image with a given URL
+var image = new dali.ResourceImage( {url: "my_image.png"} );
+
+// Create a material that specifies the visual properties of the renderer.
+var material = new dali.Material();
+
+// Add the image as texture to be used by the material
+material.addTexture( image, "sTexture" );
+