sorry to hear your troubles
but unfortunately the passport office
has specific rules for passport photographs.
i don't think your image was rejected because it was a topless photograph,
but because the head was too small ...
the head has to be a certain size in the image
no glasses, &c.
i used to take them once in a while at a portrait studio ( portrait mill )
and there was a drawing inside the eyepiece that showed where the head
was supposed to be ..
for a RA / green card it is even more strict, specific profile ears uncovered and prominently
displayed in the small 1x1" image ...
bon voyage !