Generate transparent mask image for general purpose