make plugin more generic by allowing override of the dom element and the way the image url is extracted