add flags and load-image styles; started basic templating