I rewrote the image rotation code. It's here in the sticky reusable code thread:
If you use it in my comics recipes, remember that you will need to control image sizing with extra CSS. The current recipes set image width to 100%. You may wish to change it to set image height to 100% as this code will always have the longer image dimension set vertically.