ppm and png saving, bit slow on the screenshots