add base class for joy controller and subclass for image snapshot