Last second changes to avoid drawing a new image for each diff and reuse a single JFrame instead + other small changes