Serializable attributes as a function, width & height saved if container resizable