# Image > **NOTE** > > This component is supported since API version 4. Updates will be marked with a superscript to indicate their earliest API version. The **Image** object is an image on the canvas. ## Attributes | Name | Type | Default Value | Mandatory | Description | | ------- | -------------- | ---- | ---- | ----------------- | | src | string | - | Yes | Image resource path. | | width | <length> | 0px | No | Image width. | | height | <length> | 0px | No | Image height. | | onload | Function | - | No | Function called when an image is successfully loaded. This function has no parameter.| | onerror | Function | - | No | Function called when an image fails to be loaded. This function has no parameter.| ## Example ```html