title: getSubimage gives me expection null
body: <p>I'm trying to make chess game with java and I got image from google for pieces. 
  Now I want to cut it to 6*2 images(Black and White ones). But I can't figure out what is wrong with this one.</p>
  
  <pre><code>    public static final String PIECES_IMAGE_PATH = "Images/chess_pieces.png";
      public static final int PIECE_IMAGES_INROW = 6;
      public static final int PIECE_IMAGE_ROWS = 2;
  
  </code></pre>
  
  <pre><code>BufferedImage[][] pieceIcons;
  
      private void setupPieceImages(){
          try {
              BufferedImage image = ImageIO.read(new File(Config.PIECES_IMAGE_PATH));
  
              int pieceImageWidth = image.getWidth()/Config.PIECE_IMAGES_INROW;
              int pieceImageHeight = image.getHeight()/Config.PIECE_IMAGE_ROWS;
              for(int x = 0; x &lt; pieceImageHeight; x++){
                  for(int y = 0; y &lt; pieceImageWidth; y++){
                      try{
                          pieceIcons[x][y] = image.getSubimage(x*pieceImageHeight,y*pieceImageWidth,pieceImageWidth,pieceImageHeight);
                      }catch(Exception e){
                          System.out.println("Error1: "+e.getMessage());
                      }
                  }
              }
          }catch(Exception e){
              System.out.println("error2: "+e.getMessage());
          }
      }
  </code></pre>
  
  <p>Any idea why I keep getting Expection error1: null</p>