added some functionality to the image component