protected function deleteImages() {
		$images_count = elgg_get_entities([
			'type' => 'object',
			'subtype' => TidypicsImage::SUBTYPE,
			'container_guid' => $this->guid,
			'count' => true,
		]);
		if ($images_count > 0) {
			$images = elgg_get_entities([
				'type' => 'object',
				'subtype' => TidypicsImage::SUBTYPE,
				'container_guid' => $this->guid,
				'limit' => false,
				'batch' => true,
				'batch_inc_offset' => false,
			]);
			foreach ($images as $image) {
				if ($image) {
					$image->delete();
				}
			}
		}
	}