Added JSON interface, allowed individual image requests
Added a little security check to the regex