fix picture display bugs