This method is nearly identical to ```FormatTools.getBytesPerPixel(int)```; the only real difference is that ```FormatTools.getBytesPerPixel(int)``` throws an IllegalArgumentException if the type is invalid.  Is there a need for a separate implementation?