test_decode_area: fix to make it work with odd image dimensions