Export to QImage fixed