Change remove_image to check if image is a dictionary.

`remove_image` should behave similarly to `remove_containers` in that the `image` argument it takes can either be a dictionary or the name of an image to remove