public static BufferedImage rotateImage(double angle, BufferedImage image) 
	{
		try{playerimg = ImageIO.read(new File("transparent.png"));}
		catch (IOException e){e.printStackTrace();}
		Graphics2D g = playerimg.createGraphics();
		g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
 		g.rotate(Math.toRadians(angle), player.width/2, player.height/2);
 		g.drawImage(selectedimg, null,0, 0);
		g.dispose();
		return playerimg;
	}