In general you should consider storing content in the content repository, which is able to handle images directly for you.
If you do, then you can import your image or other data by using the Tcl API proc "cr_import_content" in acs-content-repository/tcl/revision-procs.tcl".