Fire detection from image and video using YOLOv8