fix empty image err