minor improvements of QImage creation functions