Added the option to apply a mask on the image before adding it to the imageView.