Bugfix for [#4001],
split templatevariable $image->folderlink to $image->thumb and $image->file for custom styling purposes,
Improved synchronizing the database to files,
and other minor improvements.