use height and width if it's available