Don't know why this ROI selection thing isn't working yet but here's the script for it ..