OK, I think I managed to do it.
I’ve put: jQuery(“a[rel^=’prettyPhoto’]”).prettyPhoto(); around 37th line of code and it seems to be working fine.
Thank you very much for your input!
Great plugin by the way. Maybe you could think of implementing it into the pro version – that seems like a cool feature for a masonry layout.