image directory is now created if not present