Altered getSize to check for and use an explicitly defined height property