Change image path calculation.