added shouldCachePreProcessedImageOnDisc option