Automated creating a test image on Linux with a python script, fixed a few missing variables so it passes existing regression tests again.