fix pages and images