add functionality to handle images.