Copied in maxBase64Values from aesthete