Creating a basic image-recognition system