noSmooth() in Codea 4

Hi. I’m new to Codea. I’ve been working with Codea 3, and I was using noSmooth() function since my game has pixel-art based graphics. But I can’t find the similar function in Codea 4. Can anyone tell me how to disable smoothing of the sprite?
My code looks like this:
– Player.lua

–Define the Player class
Player = class()

– Initialize the player
function Player:init()
self.sprite = image.read(“my asset name”)
end

– Draw the player
function Player:draw()
sprite(self.sprite, WIDTH/2, HEIGHT/2, 80, 80)
end

What should I add to disable smoothing? Oh and also, what is the replacement of spriteMode() function?

I would really appreciate your help…

style.smooth()
style.noSmooth()

function Player:draw()
style.noSmooth()
sprite(self.sprite, WIDTH/2, HEIGHT/2, 80, 80)
end

Is there something wrong? Cause noSmooth is not working…
And I also need to know how to set the sprite mode to CENTER. Once again, thanks for helping me.

I don’t use Codea 4 for anything (only testing) since a lot of the commands from Codea 3 don’t work. Codea 4 is just beta and still being worked on so a lot of things don’t work yet.