CHANGED:applied the new function for rotating image with OpenCV