main menu, compression of the images, cleaning up the source code