Fix image rendering error