Uses width() and height() instead of outerWidth()/outerHeight() to fix #57