title: Photo Mosaic Algorithm. How to create a mosaic photo given the basic image and a list of tiles?
body: <p>Hy.What I have to do is to create a program (using C or C++), that takes as input a 24bits/pixel bitmap and a gathering of images and I have to create a mosaic image , similar to  the input image using the library of images given(To create a mosaic Photo similar to the input).   </p>
  
  <p>So far I can access the input's image pixels and the colors from it but I'm kind of stuck. My question is Where should I start? I need a basic algorithm that could do such a thing. And I can't really find any(maybe I'm looking wrong). And also can someone tell me a random photo downloader, so that i can download small images for the project? Can someone help me? Please, tell me where to start and what to use.</p>