jpeg signature detection