The effect of sub-pixel slope variations on photoclinometry