Look in Gallery carefully - you may have a few hundred ads listed before your actual pictures. Long-press one, then tick the rest of them and delete, leaving only your real pictures. (Then find the adware app that's filling your phone with ads, and get rid of it.)