How can I get Image object from url, like Picture pic = getPicture(url) ?
I tried to do this:
PHP Code:
Picture pic getPicture(url);
Image im pic.getImage(); 
but the image is still not loaded into pic.