Added support for separate files field and automatic separation of
images and other files.