Intimate images by award-winning photographer about life in HK flats breaches the law, barrister says