fix picture in session bug