Fix image corruption issue on pages