update function getimageurl on express file