Aha, its a bug in SMF!
I've uploaded same zip file on forum via admin control panel, SMF messed up those images during upload. I'm not sure where to post bug reports, so if anyone could point me in right direction, I'll fill in bug report.
...and I've been chasing this bug for months, thinking its somewhere in my script. phew.