change image filename and ref