oh i found one mistake here `match[1].indexOf('data:') !== -1` is bad