more work on the image import script