try {
// Set new configuration
// Create the graphics helper & clear the screen
final BitmapGraphics bitmapGraphics;
switch (config.getBitsPerPixel()) {
case 8:
bitmapGraphics =
BitmapGraphics.create8bppInstance(screen, width, height, bytesPerLine,
0);