autothumbnails and safer filehandling