attempt to fix empty image bug