Partial support for writing PAM format
Support writing PAM files with transparency