fix variable shadowing issue which prevented image url validation