Is there any easy way to generate 2D meshes in Python from a 2D image? (The shapes are not necessarily circular or of any structure)