Masking an image with a gradient (answer to question)