Judge locks up journalists over court photos taken ‘without authorisation’