Refactor to support data_png(color, opacity) form.