Make prettyPhoto config conditional