A few bugfixes

These commits allow img2pdf to work on thousands of files without running out of file descriptiors, and allow it to work on unexpected colorspaces by just converting the image data to RGB. I don't know much about colorspaces or PIL, so this is probably suboptimal, but it seems to work.