Added checks to see if event callbacks are defined
Added changeSrc method