Add check whether the picture url is valid or not

- #9