gwil - set some local variables to determine if custom rows are needed
- at the moment only custom listing for image-library.php template,
otherwise use default.
add further tpl_ options for additional templates.
gwil - we have custom styling for this template so set some vars
gwil - set list length to number of options unless over max_opts, then set to max_opts