public function setWidth($width)
    {
        if (!is_numeric($width))
        {
            throw new InvalidDataException('Invalid width value');
        }

        $this->width = (int) $width;

        return $this;
    }