public function getImageVersions(EntityInterface $entity, $options = []) {
		$versionData = $this->_getImageVersionData($entity, $options);
		$versions = [];

		foreach ($versionData as $version => $data) {
			$hash = Configure::read('FileStorage.imageHashes.' . $entity->get('model') . '.' . $version);
			$eventData = [
				'hash' => $hash,
				'image' => $entity,
				'version' => $version,
				'options' => []
			];

			if (method_exists($this, 'dispatchEvent')) {
				$event = $this->dispatchEvent('ImageVersion.getVersions', $eventData);
			} else {
				$event = new Event('ImageVersion.getVersions', $eventData);
				EventManager::instance()->dispatch($event);
			}
			if ($event->isStopped()) {
				$versions[$version] = str_replace('\\', '/', $event->getData('path'));
			}
		}

		return $versions;
	}