Fixed files / image FT and added on_entry_destruct param