Borrowed some really awesome Image Gallery code but the CustomSearch Api was crazy hard to figure out.