Made some improvements when showing pictures in threads