fix SuspiciousOperation in regex filters

The SuspiciousOperation is raised here if the read of the image gets
permission denied. In many cases where this is wrong it is because the
path given is /media/... which may refer to MEDIA_ROOT not /media.

Related to #251