changed schema and index for image