private static ImageLayer generateLogMessageImageLayer(String message) {
TextFormat logFormat_ = (logCount % 2 == 0) ? logFormat : logOddFormat;
ImageLayer imageLayer = graphics().createImageLayer();
TextLayout layout = graphics().layoutText(message, logFormat_);
CanvasImage logImage = graphics().createImage(graphics().width(), logFontSize + 4);
logImage.canvas().drawText(layout, 0, 0);
imageLayer.setImage(logImage);
return imageLayer;
}