add src after attaching events
added error icon. Closes #43.