Limit image size on home and refactoring another pages