Move ws image buffer to ws object

No check if `buff` is `NULL`?