Fix scope of this in getHashPrefix
Allow override of statement
Add a typing parameter to avoid goind to 0 when string
Allow override of thumbnail destination path