another fix for 09 upgrade
Fixing markdown versus html view
Make the img rotation function static
Merge branch 'dev_imgrotation' into 09upgradefix