Changed s.sizes.width and s.sizes.height from variables to functions.