public static DSResults calculate(BufferedImage[] images) {
        // Find brightest pixel

        BufferedImage chosenImage = images[0];
        int x = 0;
        int y = 0;
        int z = 0;
        int intensity = 0;

        for (int i = 0; i < images.length; i++) {
            byte[] pixels = ((DataBufferByte)images[i].getRaster().getDataBuffer()).getData();
            int width = images[i].getWidth();

            // TODO: Handle several instance of same brightest brightness
            for (int pIndex = 0; pIndex < pixels.length; pIndex++) {
                int value = pixels[pIndex];
                if (value < 0) value += 256;

                if (value > intensity) {
                    x = pIndex % width;
                    y = pIndex / width;
                    z = i;
                    intensity = value;
                    chosenImage = images[z];
                }
            }
        }
        System.out.println("X: " + x + " Y: " + y + " Z: " + z + " Intensity: " + intensity);

        return new DSResults(chosenImage, x, y, z, intensity);
    }