fix crash when gnerating thumbnail by resetting the OffScreenRendering to Off once the Qimage of the thumbnail have been created.