private BufferedImage createImage()
    {
        BufferedImage img = null;
            try {
                img = ImageIO.read(new File("image.jpg"));
                } catch (IOException e) {
                }
            
        BufferedImage image = new BufferedImage(1024, 1024, BufferedImage.TYPE_INT_RGB); 
        Graphics g = image.getGraphics();
        
        g.drawImage(img, imageX-imageVX, imageY-imageVY, null);
           /* try {  
                ImageIO.write(image, "jpg", new File("CustomImage.jpg")); 
                } catch (IOException e) {  
                e.printStackTrace(); 
                }*/
        return image;
    }