Replace gallery image.