Get an image through curl and attributes.