Some useful macro scripts for ImageJ