add position sorting for image subdocuments
Merge branch 'mikedev'