bug fix hide and show image