optimized gallery retrieval

get_post_gallery replaces BOTH the call to get_posts AND the regex needed to scrape the gallery for image ids. also include a warning if wrong gallery ID or no images found