change image path to be absolute