Apply alpha mask to JPEGs.