protected function getImageByUrl($url)
    {
        $cacheFolder = MUNEE_CACHE . DS . 'placeholders';
        Utils::createDir($cacheFolder);
        $requestOptions = serialize($this->request->options);
        $originalFile = array_shift($this->request->files);

        $fileName = $cacheFolder . DS . md5($url) . '-' . md5($requestOptions . $originalFile);
        if (! file_exists($fileName)) {
            file_put_contents($fileName, file_get_contents($url));
        }

        return $fileName;
    }