fix facebook_photo and pinterest template