Add a helper method to Image.