Allow a WriteableBitmap to be used for multiple times and multiple sizes.

Also save on some managed memory by only declaring variables once.