code: byte[] getScaledRow(int scale) {
      byte[] output = new byte[row.length * scale];
      for (int i = 0; i < output.length; i++) {
        output[i] = row[i / scale];
      }
      return output;
    }
docs: This function scales the row
  
  @param scale How much you want the image to be scaled, must be greater than or equal to 1.
  @return the scaled row