fix pictures bug