changed psm from 4 to 6 based on jpg examples