typefix
Inline paeth for do_filter
Type fix
Caused errors with overflow