Fix bug where the dimmed background wasn't drawn below the scrollview. Also clean up background image drawing and snapshotting.