add define to disable bitmap optimization