catch any exception  on image