corrected syntax for error handling while fetching image from
a URL in class Picture