function initFileInputImage(images, uploadRoute)
{
	$(".file").fileinput({
		uploadUrl: "/file-upload-batch/2",
		allowedFileExtensions: ['jpg', 'png', 'gif'],
		overwriteInitial: true,
		showRemove: true,
		frameClass: '',
		initialPreviewAsData: false,
		maxFileSize: 10000,
		removeFromPreviewOnError: true,
		initialPreview: images,
		layoutTemplates: {
			footer: ''
		},
		previewTemplates: {
			image: '<img src="{data}" class="kv-preview-data file-preview-image img-fluid" title="{caption}" alt="{caption}" {style}>\n',
		}
	});

}
