Design and Analysis of Coded Mask Imaging Systems