add category and resize images