Added error message reporting via flashing
Wrapped 'potrace' error in a ValueError