Adding a toString method that returns the image object