bugfix - buffers for source and dest pixel formats can have different size