Changes image path to use variable