Actually, I don’t think that avast! heuristics warns about JPEG attachments currently (even though I might be wrong). Are you sure it was a .jpg file? Wasn’t it rather a file with two extensions? What exactly did the warning say?