fixed rendering with rotate,translate and scale bug and added rotation