Script to Match, Scale and Subtract template image