needed to set a global variable, apparently
including sanitization! although the sanitized images all revert to the last valid fallback value, which is not correct. May be better to revert to blank?
removed max-height from CSS