Added data attributes support, attachment to mutliple images via class, use thumbnail image if large is not set