HiRes Screenshot with Mask Enabled is having green background

So, select those 3, and under details, check ‘render custom depth pass’. When you take the shot, the output has a transparent background with those 3 on it.