created Pointer class, to encapsulate pointer image, and some of the processing