Correct GdkPixbuf byte length and simplify decoder

Merge decoder updates from pjanouch