Preparing an image for auto-vectorization