The following attachments run well with the image in the directory CDF.
But when it comes to transform the output to a file CDF, I get an error in the Import statement.
I have not been able to resolve this situation.
You would need to evaluate the code and export the result to CDF as your notebook does not contain that, just the code necessary to create it. [You can export the code too, but it won't do you much good as the CDF player doesn't evaluate Mathematica code.] The free CDF player cannot import files as far as I am aware. If that's the functionality you wanted, you'd need to look at the CDF Player Pro. You should also be careful with CDF exports using a Manipulate or DynamicModule that uses SaveDefinitions -> True. That only works well in simple cases.
Manipulate
DynamicModule
SaveDefinitions -> True