adding printstacktrace to Throwable catch
bringing across the bitmap util test fixes from master
refactoring bitmap utils tests, improving test coverage