Messing around with @AmmarkoV's pnm conversion tool