add new pipeline methods to get file/image/thumbnail paths

This change allows to pass request, response and spider context to filename
construction methods.