Selects a different image to be shown.

        Parameters:
            | key - a key in the original dictionary to specify which image to show

def replace(self, key):
        """Selects a different image to be shown.

        Parameters:
            | key - a key in the original dictionary to specify which image to show

        """
        if not (key in self.imagesDict):
            print('The key', key, 'was not found in the collection of images dictionary')
            raise KeyError
        self.originalImage = self.imagesDict[key]
        self.image = self.originalImage.copy()

        # Set the rect of the image to appropriate values - using the current image
        # then scale and rotate
        self.rect = self.image.get_rect()
        self.rect.x = self.loc[0]
        self.rect.y = self.loc[1]

        self.scale(self.percent, self.scaleFromCenter)
        self.rotate(self.angle)