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;