add match preview tab 2

this is not much safe especially if exception happen.
in ruby it is preferred to use block method:
```
File.open("#{@tmp_dir}/#{generic_alias}.png", "w") do |png|
  specimen_write(pattern, @current_scripts[generic_alias], png,
    SPECIMEN_SIZE, SPECIMEN_SIZE);
end
```