Minor fix of image viewer. It does not flicker anymore