       bitCounter = 8;
       regCounter++;
     }
-    if(regCounter == 8){
+    //change number of regCounter when width is different
+    if(regCounter == 2){
       regCounter = 0;
       lineCounter++;
     }

    return;
  }
  Serial.println("Card initialized");

  convertToByte();
  //write();
}

}

void convertToByte(){
  File dataFile = SD.open("twitter.txt");
  if(!dataFile){
    Serial.println("Error on opening the file");
    return;
