dded an onerror handle in the image plugin - fixed indentation