Use guint instead of guint16 to represent the size of the encoded image, this would make some recombined images lose most of their data and show like a big black image with a small line of content on top. Also adds a minor log message.