Fixed QImage corrupt memory crash