Unified naming parameter and variable conventions.
Unified formatting.
Refactored code for creating the bitmap.