Move ws image buffer to ws object

Obvious math is obvious.