image header bug fixed

wasn't tough enough to delete your comments on line 282 and 283