Modified the bitmap scaling