maybe there's a library out there for this? image trace or something? something with live preview would be nice.