Changes img src if local

reference is local