a helper script to extract img for testing and a map image for testing with phantomcss