fix some bugs

missing return in demo16's int functions.
fix a debug which may yield crash when loading jpeg image.