fix bug for no image