Apply the mask on global image, copy from pixmap not image to prevent multiple QPixmap::fromImage calls