(RasterLayer): Added opacity and masktype parameters to the constructor, and set the appropriate variables to those values.