changing image to absolute path