ImgSaver: correct iteration over planes

ImgSaver was iterating over non-sensical indices for multi-plane and
multi-channel images.

Moved the writing/status updating inside the inner RGB channel loop,
corrected the plane index being loaded/saved, and corrected RGB channel
iteration start/end points.