various fixes, use JPG output, more timeouts
more table work, PDF image scaling fix
cleanup