Add a delay to the image error handler attachment code to avoid
triggering a false image error event. This is cause when the error
handler is attached before the image is assigned a src attribute.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>