public void paintComponent(Graphics g) {
			Graphics2D g2 = (Graphics2D) g;
			
			g2.setColor(Color.LIGHT_GRAY);
			g2.fillRect(0, 0, getPreferredSize().width, getPreferredSize().height);
			
			if(sprite != null) {
				sprite.draw(g2, null);
				
				g2.setColor(Color.RED);
				for(int x = 0; x<maxFrame + 1; x++) {
					for(int y = 0; y<maxDir + 1; y++) {
						g2.drawLine(0, y * (sprite.getSprite().getHeight() / maxDir), sprite.getSprite().getWidth(), y * (sprite.getSprite().getHeight() / maxDir));
						g2.drawLine(x * (sprite.getSprite().getWidth() / maxFrame), 0, x * (sprite.getSprite().getWidth() / maxFrame), sprite.getSprite().getHeight());
					}
				}
				
				g2.setColor(Color.BLUE);
				g2.drawRect(rectToDraw.x, rectToDraw.y, rectToDraw.width, rectToDraw.height);
			}
		}