gallery str replace prettyphoto 1