created python function to get ROIs using the mouse, used for extracting templates