Added ability to add new images.

$location added to images controller to allow redirects.