fix from 1.0.13
Merge branch 'master' of https://github.com/dmi3yy/modx.evo.custom

# By Pathologic
# Via Pathologic (1) and dmi3yy (1)
* 'master' of https://github.com/dmi3yy/modx.evo.custom:
  set thumb format depending on original file extension
  optimize getFile function

Conflicts:
	assets/snippets/phpthumb/snippet.phpthumb.php