Handle imageBounds option a little more cleanly
Fixed centering when canvas is resized