Test user-agent for strong and decides whether to serve .gif or .jpg image.