Hope this isn't a duplicate, quick search didn't show this issue being reported before.
var pg;
function setup() {
createCanvas(100, 100);
pg = createGraphics(100, 100);
}
function draw() {
pg.background(100);
pg.fill(200);
pg.noStroke();
pg.textSize(50);
pg.textAlign(CENTER, CENTER);
pg.text("Test", width/2, height/2);
image(pg, 0, 0);
}