I am using python 3.12.0 on VS code and when I run loader.get_masks on a pdf I get an error. It has worked fine when I use a jpeg.