Use constants for the test buffer dimensions
Make sure stride handling is also tested
Wrong padding size calculated (copy-paste error)
Merge branch 'jpeg16' of https://github.com/CendioOssman/tigervnc