User proper names for ImagePlus objects.
Use a function for repetitive tasks.
Use the ChannelSplitter class directly.