public static Image createSquareImage(int height, int width) {
		Image binaryImage = new RgbImage(width, height);
		for (int y = 0; y < height; y++) {
			for (int x = 0; x < width; x++) {
				// Analyzes if the point is in the black or white square
				boolean fitsInSquareByWidth = (x > width / 4 && x < 3 * (width / 4));
				boolean fitsInSquareByHeight = (y > height / 4 && y < 3 * (height / 4));
				Color colorToApply = (fitsInSquareByWidth && fitsInSquareByHeight) ? Color.WHITE
						: Color.BLACK;
				binaryImage.setPixel(x, y, colorToApply.getRGB());
			}
		}
		return binaryImage;
	}