NOTE: Uses a Web Worker to avoid freezing the page. Large images are RESIZED (max 600px longest side) before carving. Calculation still takes time!
Optimization: Energy uses squared gradient (faster). Main work done in background thread.