fixed pixels buffer error release
updated demo