Help simulate custom ArduCopter code (Mission Planner)

Hi everyone!
I would like to test my own ArduCopter code with the simulator of Mission Planner, and I don’t know how to do this.
I saw that the code needs to be an image file, how can I convert the project code in a image?
How can I tell Mission Planner to load my image file from my local repository?
Thank you for the help! =D

UP
Twenty characters.