Refactored screenshot bits so that it comes from a cached image. Fixes #71.