Specify image references to generate layer hierarchy

Lines beggining with # are ignored.