template fix. also a directory for images