Caching bitmap rotations (fixes #2)