I know im late and all, but the solution is using paste sprite then using text
sync on
MakeRectIm(1,50,50,RGB(0,0,255))
sprite 1, 190,190,1
`hide all sprites so that we have complete control over them
hide all sprites
do
cls 0
paste sprite 1, sprite x(1),sprite y(1)
ink RGB(255,255,255),0
text 200,200,"lalala"
sync
loop
Function MakeRectIm(ImNum as integer, Width as integer, Height as integer, Color as Dword)
create bitmap 32, Width, Height
ink Color, 0
box 1,1,Width, Height
get image ImNum, 1,1, Width, Height
delete bitmap 32
endfunction