add feature to download current image when d key is pressed