Added support for hasImages, startingAfter and endingAfter parameters.