Fix layer names not displaying correctly

Also removed dependency for the nonexistent "file_formats.h"