Fix bug if no image