More dynamic handling of sprite width/height