Allow PDF resources as background image

This fails because the image is casted to ITextFSImage which is wrong if the resource is a PdfAsImage. With this patch it works fine.