If self.mask_img is a string, as well as self.maps_img, it would be good to include them in the error message.