Towards Scalable Analysis of Images and Videos