Add anti-aliased support for PGM.
Minor change.
Make anti-alias default only when supported.