work around broken jpeg headers; be more conservative with the namespace