Bug fix when no image