public function getSizes(\ElggEntity $entity, array $icon_sizes = array()) {

		$defaults = ($entity && $entity->getSubtype() == 'file') ? $this->config->getFileIconSizes() : $this->config->getGlobalIconSizes();
		$sizes = array_merge($defaults, $icon_sizes);

		return elgg_trigger_plugin_hook('entity:icon:sizes', $entity->getType(), array(
			'entity' => $entity,
			'subtype' => $entity->getSubtype(),
				), $sizes);
	}