fixed bug with photo on main page