commit folder struct and image handler