image bug fix