Small tweak to imgRegex replacement