fix bug which caused transparent tiles to have a background instead of transparency, add opacity and background color support