public PixImage toPixImage() {
    PixImage image = new PixImage(width,height);
    RunIterator iterate = iterator();
    int row = 0;
    int column = 0;
    do {
      int[] runArray = iterate.next();
      int count = runArray[0];
      while (count > 0) {
        image.setPixel(column,row,(short)runArray[1],(short)runArray[2],(short)runArray[3]);
        if(column == image.getWidth() - 1){
          row++; column = 0;
        } 
        else {
          column++;
        }
        count--;
      }
    } while (iterate.hasNext());
    return image;
  }