setAttachment accepts nil as name to clear attachment; premultiply alpha when drawing