Position dependent linear intra prediction for image coding