fix imageLib with thumbnail and fix mediaRepo