Fix bug of type=readable_dir and create "image" lazily