Image bitdepth checks

ImageFlow technical blog