Make any configuration variable used by phpThumb overridable

backported from 325d005