private static void convertToGS(String filePath){
		
		try{
			
			BufferedImage image = ImageIO.read(new File(filePath));
			
			for(int w=0; w<image.getWidth(); w++){
				
				for(int h=0; h<image.getHeight(); h++){
					
					Color c = new Color(image.getRGB(w,h));
					int averageColor = (c.getRed() + c.getGreen() + c.getBlue()) / 3;
					
					Color avg = new Color(averageColor, averageColor, averageColor);
					image.setRGB(w,h,avg.getRGB());
				}
			}
		
			ImageIO.write(image, "jpg", new File("image_grayscale.jpg"));
		}
		catch(IOException e){
			e.printStackTrace();
		}
	}