process_image takes gallery ids and option for thumbs only