alternate solution for rotating image