Deep binary codes for large scale image retrieval