did stupid things for image recognition. need to use redis properly