Fix image display bug