jpg being weird while printing header