image function that return link of image

and if the time is more than 1 minute of difference from last edit of
image and the current time it recreate it before give link to have an
updated image