Fix bug with "import snapshot" and greatly increase rendering speed on Linux
Added referencing comments (Bugfix 9448).
Tweaked clear_surfaces() to take a 'preserve_contents' parameter - otherwise image editing operations clobber previous contents.
Merge branch 'bugfix-9448' into develop