Fix backreference in image regex.