I have used custom format archieve in pg_dump.
I have used the following command in plpgsql function to insert the image.
lo_import(xlogopath)
After I inserted one image more records are created in pg_largeobject and pg_largeobject_metadata tables other than the OID returned from lo_import