Refatored image rotator widget

Refactored and improved image rotator widget