cache box drawing