Move ws image buffer to ws object

This is not a doxygen comment. Style:

```C
/**
 * Header
 *
 * Detailed
 */
```