WordPres JSON API Image filtering fix and performance improvement