image format conversion (e.g. between MONO8, YUV422, and RGB)