Instead of 'type' param, use 'alpha?' in new-image.