Working draw function with rotation.