some fixes for pilt profiles preview
Merge remote-tracking branch 'upstream/master'
Merge pull request #337 from jpecht/master

pilt profile fix