Fixed change image to redirect to parent folder. Url for redirect
	was generated by django based on the general change perm.
* created method for duplicated code that redirects to dir-listing