QImage::constBits is qt >= 4.7 only