Optimize ad refactor code; Make first switch scenario similar to default
Implement current image index saving feature
All methods have been documented. Some changes in deferred object
Integrate image resizing into image switching functionality. Image resize and align code refactoring.