In nop 2.1, the properties LocalThumbImagePath and LocalImagePath both call HttpContext.Current to get the physical path. However, if the picture service is used in for instance a task, HttpContext.Current is null and getting the physical path will throw a NullReferenceException. A better way to do this is to call HttpRuntime.AppDomainAppPath