Added a recursive image search function and a image flipping and scaling function