fix sprite rotation and add rotating_boxes example