'Return a new PhotoImage based on the same image as this widget
but use only every Xth or Yth pixel.'

def subsample(self, x, y=''):

    destImage = PhotoImage()
    if (y == ''):
        y = x
    self.tk.call(destImage, 'copy', self.name, '-subsample', x, y)
    return destImage
