Added imageProvider block method for getting next image