Bugfix: Casting an SplFileImage to a boolean raise a PHP exception
Custom thumbnail salt to avoid computing the thumbnail ratio at each request