gallery str replace prettyphoto 3