fix bug with  and recursion; centre picture