How to fix URLs of catalog images in Magento < 2.3 in Windows?

Replace the line:

with the following one:

return implode('/', [$this->context->getBaseUrl(), $this->getModule(), $this->getMiscPath()]) . $this->getFilePath();

See also:

How to fix catalog images in Magento ≥ 2.3.5 in Windows?