Goes to right image index in gallery
Updated with new properties available in wp-json-api 1.1.1
Got rid of warning