using regex to retrieve image urls