in reply to Re^2: create image via binmode
in thread create image via binmode

That's fine. It'll return the remainder in the last pass of the loop.