added method to download image