# Convert the black & white image to 2D-style PNG by applying a slight threshold to enhance the sketch look
# Convert to numpy array for processing
bw_array = np.array(bw_image)
# Apply a binary threshold to simulate a 2D sketch effect
threshold = 100
bw_2d_array = (bw_array > threshold) * 255 # Convert to binary: 0 or 255
# Convert back to PIL image
bw_2d_image = Image.fromarray(bw_2d_array.astype(np.uint8))
# Save as PNG
bw_2d_png_path = "/mnt/data/black_white_2d_sketch.png"
bw_2d_image.save(bw_2d_png_path)
bw_2d_png_path