maxWidth and  maxHeight from clay fork