Add support for onLoad event to <img />