Fixed the type for W and H in ObjectInfo to be float