[ 'base64' => $this->resource->getImageHead()->getImageBase64(), 'width' => $this->resource->getImageHead()->getWidth(), 'height' => $this->resource->getImageHead()->getHeight(), ], 'image_body' => [ 'base64' => $this->resource->getImageBody()->getImageBase64(), 'width' => $this->resource->getImageBody()->getWidth(), 'height' => $this->resource->getImageBody()->getHeight(), ], 'captcha_key' => $this->resource->getKey() ]; } }