On image change event, passes previous image index and current image index as arguments
final void Function(int, int)? onImageChange;