Refactoring of code for bitmap creation.