Check url before showing image