public static void RotateImage(string path, string outputPath, bool back, IDataStore store) { ThumbnailGenerator _generator = new ThumbnailGenerator(null, true, maxSize, maxSize, maxWidthPreview, maxHeightPreview); _generator.store = store; _generator.RotateImage(path, outputPath, back); }