fix chrome bug: after choose an img, cant choose the same img again; change wasnt trigged;
using jquery on instead of bind and click
log only if debug is true;
Merge pull request #2 from ruanmer/master

Chrome and Debug fix