Fix a bug in high DPI scaling

We can't take more pixels that exist in the background, but we must scale
them down to a smaller size because the target canvas has ctx.scale
applied.