the program also generates the debug images for the different layers in the debug folder