Support different image height/buffer height during pixfmt conversions