catch exception on thumb generation error