added rotation and fixed openseadragon refresh