Using image id references instead of nested images