add rotate method for ImageWidget