More robust static generation

This will not prematurely abort if referenced images are missing.