fixed blinking due to updating sprites too often