>I'm not sure what you mean by images here, but I'd suggest making this a macro in your IDE -- I use Ctrl+R for it -- and running it from the command window each time you exit a test run instead of building these statements into your code.
Either from that approach, it doesn't work.