fix printing images with width > 128 px

now computing hi and low byte for image height