add config for upload dir
auto delete associated relation and images files on image item delete