Text this: Development of an image rotary encoder for motion control