jpeg header check fix 

More info https://haxenme.atlassian.net/browse/NME-153

Tested in: chrome, firefox, ie10