{"action":"opened","issue":{"url":"https://api.github.com/repos/processing/p5.js/issues/1407","repository_url":"https://api.github.com/repos/processing/p5.js","labels_url":"https://api.github.com/repos/processing/p5.js/issues/1407/labels{/name}","comments_url":"https://api.github.com/repos/processing/p5.js/issues/1407/comments","events_url":"https://api.github.com/repos/processing/p5.js/issues/1407/events","html_url":"https://github.com/processing/p5.js/issues/1407","id":154299865,"number":1407,"title":"Set image as background throws an error","user":{"login":"rbostan","id":4427628,"avatar_url":"https://avatars.githubusercontent.com/u/4427628?v=3","gravatar_id":"","url":"https://api.github.com/users/rbostan","html_url":"https://github.com/rbostan","followers_url":"https://api.github.com/users/rbostan/followers","following_url":"https://api.github.com/users/rbostan/following{/other_user}","gists_url":"https://api.github.com/users/rbostan/gists{/gist_id}","starred_url":"https://api.github.com/users/rbostan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbostan/subscriptions","organizations_url":"https://api.github.com/users/rbostan/orgs","repos_url":"https://api.github.com/users/rbostan/repos","events_url":"https://api.github.com/users/rbostan/events{/privacy}","received_events_url":"https://api.github.com/users/rbostan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-11T17:34:38Z","updated_at":"2016-05-11T17:34:38Z","closed_at":null,"body":"Hi,\r\n\r\nWhen i tried to set image as background, an error occured: \r\n`p5.js:21213 Uncaught TypeError: this._renderer.image is not a function`\r\n\r\nCode :\r\n````\r\nvar canvas;\r\nvar wall;\r\nfunction setup() {\r\n\twall=loadImage(\"/v2/assets/img/bg.jpg\");\r\n\tcanvas=createCanvas(1023,682,WEBGL); // canvas size same as image size \r\n}\r\n\r\nfunction draw() {\r\n\tbackground(wall);\r\n\tbox(100,100,100);\r\n}\r\n```\r\n"}}