fixed home index picture logic