Add error and success images to css classes