replaced constant with method form image helper