added a "prepareDOM" function to call the document ready initializer on-demand.
now images inside links can be nested deeper instead of the being directly inside the <a> element
minor changes to the demo page