Update API to include opacity for backgrounds