Updated file serializer for improved thumbnail support