set image path from context path global variable