fixed error on image load