fast construction of gray and tinted QImages from data
minor improvements of QImage creation functions