Bugfix: First try at eliminating qimage crashes and corruptions.