added Test for MediaImportFactory
made the resizing of images more robust.