using pygame.draw.rect for generating grating stimulus