Added bpp considerations to ImgSaver

Updated the interleaved algorithm to consider bytes per pixel when
computing pixel positions.

Also renamed plane variables for clarity.