As Thijs Schoemaker mentioned, System.Image is a specialized entity of System.FileDocument.
So, when you set System.Image as Generalized object, then it is already a FileDocument.
Not sure, why you want to set for both entities. And it is not possible.
Reconsider your domain modelling.