fix odin_thumbnail() variables and sanitize $class