Changed the size stuff to use floats rather than ints. Global height and width is now calculated using the bbox