Closes #8. Add debouncing for rendering the preview.