   }
   tft.setCursor(0, 15);
   tft.println("Theme:");
-  tft.setCursor(0, 25);
+  maxLeghtOfTheme = min(themeField.length(), MAXTHEMELENGTH);
+  tft.setCursor((HALFTHEMELENGTH - (maxLeghtOfTheme / 2)) * LCDWIDTHOFFSET, 25);
   tft.println(themeField);
   tft.setCursor(0, 50);
   tft.setTextSize(2);

      themeField += (char)tempByte; // Store byte for displayFileName
    }
    themeName.close();
  } // if ((themeName = SD.open("theme.txt", FILE_READ)) != NULL)

  // Print # of files and mode
  Serial.print("Number of files = ");

  return (true);
}  // bmpDraw

// These read 16-, 32-bit and 8- types from the SD card file.
// BMP data is stored little-endian, Arduino is little-endian too.
// May need to reverse subscript order if porting elsewhere.

