fixed blue bug, tested with plain text for .ppm