Added additional trace for debugging. Caching main view as bitmap