BUG: Fixed bug in handling drawing bitmap images accounting for the device scaling