Fix to replace image path