Use the image size to determine how far in on the x and y to go. This image (skull.bmp) is 155x219. The center is about 77x109. So after the sprite is created use "offset sprite 1,77,109". To see if the image center has been achieved rem off "hide mouse" (or move the mouse to the corners to see the image rotate around the center).
This code rotates the skull picture clockwise. To make it go counter clockwise change the "wrapvalue(p)" to "wrapvalue(-p)".
Hope this helps.
set display mode 640,480,32
sync rate 0
sync on
hide mouse
load image "skull.bmp",1,1
sprite 1,0,0,1
scale sprite 1,50
offset sprite 1,77,109
do
sprite 1,mousex(),mousey(),1
rotate sprite 1,wrapvalue(p)
inc p,5
sync
loop