code: function pongIOrenderImg( ctx, def ) {
  	log( "pong-io", "pongIOrenderImg '"+def.id );
  	var background = new Image();	
  	if ( def.imgURL && def.pos && def.pos.x && def.pos.y ) {
  		background.src = def.imgURL;
  		background.onload = function() {
  			if ( def.width && def.height ) {
  				ctx.drawImage( background, def.pos.x, def.pos.y, def.width, def.height ); 
  			} else {
  				ctx.drawImage( background, def.pos.x, def.pos.y ); 				
  			}
  	    };
  	}
  	log( "pong-io", "pongIOrenderImg end.");
  }
docs: ---------------------------------------------------------------------------------------