added try/catch to thumbnail service