Changed preview image creation and handling.
Added preview tag to XML representation.
Used FileCoordinator to change file names.