Corrects path to image.