fix bug with image priority changes in wordpress