Upload Image to client Detail

I wanted to add image on client module, and save the image name to ip_client table, image will upload to upload folder.
But i found that invoiceplane used javascript to get the pass value to model, if i wan to upload image what i need to do.
Is that using javascript will more difficult, or is there other way?

thank you