How to Process Astrophotography Images using layer mask