Added function to remove prefix from image links