Fix image src replacement.