use QImage instead of libpgm or netpbm

ze branch is FF with this merge.