Bug fix of ENCODEPOLICY_SIZE

Fix a bug which outputs sixel sequence exceeding the size of an original image
if its height is not multiple of six.