chap2 decode image size