added an example for creating an image object