$('.test-popup').magnificPopup({ type: 'image' // other options });