use fragment life cycle correctly in PictureGrildFragment