fix error image handler