public static BufferedImage pixelate(Image img, int pixel) {
		// Open a new image for playing graphic magic~ :)
		BufferedImage bufImg = convert(img);
		BufferedImage resultImg = new BufferedImage(bufImg.getWidth(),
				bufImg.getHeight(), BufferedImage.TYPE_INT_RGB);

		// Declare and set some variables...
		int height = bufImg.getHeight();
		int width = bufImg.getWidth();
		int x, y;

		// Doing magic one by one, pixel by pixel
		int ynew = 0;
		for (int j = 0; j < height; j++) {
			int xnew = 0;
			for (int i = 0; i < width; i++) {
				// formulas for pixelating~ :D
				int a = pixel - xnew % pixel;
				if (a == pixel)
					x = 0;
				else if (xnew + a < width)
					x = xnew + a;
				else
					x = xnew;
				int b = pixel - ynew % pixel;
				if (b == pixel)
					y = 0;
				else if (ynew + b < height)
					y = ynew + b;
				else
					y = ynew;

				// put the colout of x,y pixel from the original image to the
				// xnew,ynew pixel of the buffered image
				int values = bufImg.getRGB(x, y);
				Color color = new Color(values);
				resultImg.setRGB(xnew, ynew, color.getRGB());

				xnew++;
			}
			ynew++;
		}
		return resultImg;// Simpliy return the product and happy~ ^^
	}