Added custom error handler to catch a possible E_WARNING due to race condition with multiple requests calling mkdir() for a new thumbnail image directory