tool.js

script to get the image