multilayered javascript image filter