fix for png header match on ruby 2.0