changed qimage to qpixmap