public function queryForRelated($tagId, $images = true)
    {
        $query = $this->find('active')
            ->select(['id', 'title', 'preview', 'slug', 'text'])
            ->matching('Tags', function (Query $q) use ($tagId) {
                return $q->where([sprintf('%s.id', $this->Tags->getAlias()) => $tagId]);
            });

        if ($images) {
            $query->where([sprintf('%s.preview NOT IN', $this->getAlias()) => [null, []]]);
        }

        return $query;
    }