OCS image upload owner/group

dear all
im using OCS
when i upload images the owner/group becomes(99 99) and the image dose not appears in the site
when i manually change the image with another image that have owner/group (504 500) it works ok and appears on the site.

the question is how to update the OCS code to upload images with owner/group (504 500) automatically ?
thanks best regards