test jpg frames
and requestAnimationFrame