repairing img paths