Fixing non-js image display bug