Oops forgot to reduce the size of applets to 350 in my copy/paste
frenzy.
Added bounds checking that will increase the size of the underlying
array if it is smaller than the new width and height.
Upgraded the wrap function to be ~100 times faster with large ints.