Thanks Roberto. Yes, what you have mentioned is valid indeed. Yet I have added the same check in tmpl/default.php which checks whether the image is empty or not before displaying the slide.