//get parent window image
Component c = this.pizarraAnimacion;
//BufferedImage screenImage = (BufferedImage) c.createImage(c.getWidth(), c.getHeight());
BufferedImage screenImage = (BufferedImage) c.createImage(700, 500);
//BufferedImage screenImage = (BufferedImage) this.pizarraAnimacion.createImage(200, 200);
Graphics2D graphics = screenImage.createGraphics();