Change ref to image