Rename the method to generate a random object from the library and add some methods to handle the image