added prettyphoto support