Import image into drafting view

I’m trying to import image into drafting view by using some nodes in package. When I use the ImageTypeOptions.Create, it shows “Warning: ImageTypeOptions.Create operation failed.
Could not load type ‘Autodesk.Revit.DB.ImageTypeOptions’ from assembly ‘RevitAPI, Version=, Culture=neutral, PublicKeyToken=null’.” Does anyone know how to solve it? Thanks!

Thanks for the reply! I still got the same error. Is it because of the dynamo or Revit version? I’m in the Revit 2019 and Dynamo 1.3.4

Try like this

@royroy Yes, this is not going to work in Revit 2019. This particular API was added in Revit 2020 and up.