decodeSize now returns Dimension