Add rotate function, need gm library