Change bitmap creation function