Barefoot 'homeless' man from viral NYPD photo has apartment, city agency says