Performance tweaks, image scaling on c++ side, less QImage copy operations, with pointers