refactored compositewebgljpg and added search. still need to fix getImage from webgl canvas.