update home pic logic