Added the function charger_image_pgm