code: public static int downSampleSize( int length , int squareWidth ) {
  		int ret = length/squareWidth;
  		if( length%squareWidth != 0 )
  			ret++;
  
  		return ret;
  	}
docs: Computes the length of a down sampled image based on the original length and the square width
  @param length Length of side in input image
  @param squareWidth Width of region used to down sample images
  @return Length of side in down sampled image