allow "tex" image loader by default, and add DEBUG=1 for showing the log in the console, only in debug mode.