Fix some mistakes with counting the number of picture lumps in the picture editor.