adding bilinear mode for rotate()