Print the exception on thumbnail creation failure

Fixes #922