JPG header and footer