Correcting image paths