fixed errors, enable ir types to accept a url, width and height