Fixed some bug from change img