# image

<figure><img src="https://2798932742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKBGfOeYOvP45qYmu7SWy%2Fuploads%2F4BP0QP0JqOJrSKiTZKH0%2Fimage.png?alt=media&#x26;token=2df82ba7-8c26-4e61-8e9b-31e30c2f3d25" alt=""><figcaption></figcaption></figure>

Option type image supports the following properties:

<table data-header-hidden><thead><tr><th width="141"></th><th width="103"></th><th width="196"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td><strong>Type</strong></td><td><strong>Default</strong></td><td><strong>Description</strong></td></tr><tr><td>show_size</td><td>Boolean</td><td>false</td><td>The property shows also the image width and height</td></tr><tr><td>emptyText</td><td>String</td><td>‘No Image Selected’</td><td>Text to appear when no image selected</td></tr></tbody></table>

```
$options->add_option(
            'image',
            [
                'type'        => 'image',
                'id'          => 'image',
                'description' => 'Choose the desired image.',
                'title'       => esc_html__( 'Image', 'zionbuilder' ),
                'show_size'   => true,
                'default'     => [
                    'image' => Utils::get_file_url( 'assets/img/no-image.jpg' ),
                ],
            ]
        );
```
