Fix QPainter image