public BufferedImage convertImageToBufferedImage() {
        Logger.getLogger(ImageReader.class.getName()).entering(ImageReader.class.getName(), "convertImageToBufferedImage");
        if (imageObject.getClass().getName().toLowerCase().contains("image")) {
            Image tampon = (Image) imageObject;
            if (image != null) {
                image.flush();
            }
            if (tampon.getWidth(null) == -1 || tampon.getHeight(null) == -1) {
                Logger.getLogger(ImageReader.class.getName()).log(Level.SEVERE, "Image can't be read and converted for showing on screen");
                new InfoInterface(InfoInterface.InfoLevel.ERROR, "image-convert");
                Logger.getLogger(ImageReader.class.getName()).exiting(ImageReader.class.getName(), "convertImageToBufferedImage", null);
                return null;
            }
            image = new BufferedImage(tampon.getWidth(null), tampon.getHeight(null), BufferedImage.TYPE_INT_ARGB);
            Graphics2D g2d = image.createGraphics();
            g2d.drawImage(tampon, 0, 0, tampon.getWidth(null), tampon.getHeight(null), null);
            g2d.dispose();
            Logger.getLogger(ImageReader.class.getName()).exiting(ImageReader.class.getName(), "convertImageToBufferedImage", image);
            return image;
        }
        Logger.getLogger(ImageReader.class.getName()).log(Level.SEVERE, "Trying to convert something else than an image");
        Logger.getLogger(ImageReader.class.getName()).exiting(ImageReader.class.getName(), "convertImageToBufferedImage", null);
        return null;
    }