Changed modal big javascript to one function supporting data-image-src attribute or find(img)