AutoMidHandle True: sets the point for rotate at center (x,y) instead of the upper left corner. When you draw, its origin is still at the upper left corner of the image. You will need to accommodate for the center x,y yourself by centerx = image.width/2 and centery = image.height/2
Hope this helps :)
Hope this helps :)