public function imageTag($field = null, $attributes = '')
    {
        // if no field found just return empty string
        if (!$this->hasImageField($field) || $this->hasFileField($field)) {
            return '';
        }

        try {
            return '<img src="' . $this->imageUrl($field) . '" ' . $attributes . ' />';
        } catch (\Exception $exception) {
        }
    }
public function imageTag($field = null, $attributes = '')
    {
        // if no field found just return empty string
        if (!$this->hasImageField($field) || $this->hasFileField($field)) {
            return '';
        }

        try {
            return '<img src="' . $this->imageUrl($field) . '" ' . $attributes . ' />';
        } catch (\Exception $exception) {
        }
    }
public function imageTag ( $ field = null , $ attributes = '' ) { // if no field found just return empty string if ( ! $ this -> hasImageField ( $ field ) || $ this -> hasFileField ( $ field ) ) { return '' ; } try { return '<img src="' . $ this -> imageUrl ( $ field ) . '" ' . $ attributes . ' />' ; } catch ( \ Exception $ exception ) { } }
Get html image tag for a field if image present

@param null $field
@param string $attributes
@return string
Get html image tag for a field if image present