rotating big images is expensive, and you’re rotating a lot of big images. try caching the results, like this:
here’s the code with my changes: