Blueimp image gallery replaced with magnific-popup