Import a file from the plugin folder to photoshop

I can not help you fix your specific problem, as I do not know enough.
I have just solved the same problem in a different way. If you do not explicitly need to import the image as binary, maybe this could help?