cache image and add refresh