Context-adaptive pixel based prediction for intra frame encoding