Programmatically attach image to a content type from local system folder
You can just use file_copy or file_move.

Here is an example: https://stackoverflow.com/questions/5129559/attaching-files-to-nodes-programmatically-in-drupal-7