Fix setBufferVisible so that buffers array doesn't need to be accessed
Add a resize function to Picture