Create transparent JPGs using PNG masks and Canvas elements and JS