Help for tetris tetrominoes design

I developed the whole tetris game but I want my tetriminoes to have grid like patterns like the image below. Please help.

What code have you tried so far?

I have tried no code so far it is set as default where has no grid markings. Its like in the image down belowqwer

You need to give it a first attempt and then we can help guide you to reach your goal.

After your reply I tried several times but the results where very strange- the tetrominoes were not displaying not the screen. As the rotation is an array and not an image I also couldn’t import the images from the web

Please help as I cant figure it out

Can you please post the code you have tried?