pow(x,n) & rotate image