private function getPoiFromMetadata() {
        if ($this->metadata === null) {
            $metadata = $this->event->getDatabase()->getMetadata(
                $this->image->getUser(),
                $this->image->getImageIdentifier()
            );

            $poi = isset($metadata['poi'][0]) ? $metadata['poi'][0] : false;

            // Fetch POI from metadata. Array used if we want to expand with multiple POIs in the future
            if ($poi && isset($poi['cx']) && isset($poi['cy'])) {
                $this->metadata = [
                    (int) $poi['cx'],
                    (int) $poi['cy']
                ];
            } else if (
                $poi &&
                isset($poi['x']) && isset($poi['y']) &&
                isset($poi['width']) && isset($poi['height'])
            ) {
                $this->metadata = [
                    (int) $poi['x'] + ($poi['width']  / 2),
                    (int) $poi['y'] + ($poi['height'] / 2)
                ];
            } else {
                $this->metadata = false;
            }
        }

        return $this->metadata;
    }