public function generateThumbnails($path, $filename)
{
// create folder if needed
$filesystem = new Filesystem();
if (!$filesystem->exists($path . '/source')) {
$filesystem->mkdir($path . '/source');
}
// move the source file
$this->moveFile($path . '/source/' . $filename);
// generate the thumbnails
Model::generateThumbnails($path, $path . '/source/' . $filename);
}