JS based script to blending image