Choosing the right gain for Deep Sky imaging with CMOS cameras