Better regex matching for imagey

The old regex wouldn't match IP addresses or hostnames without a TLD. (ex. 'myserver')