add js error on image maxsize limit