Error "Unable to get the size of the image" when trying to create a PDF form