send image using send_from_directory when using old url format.