fix sort image when page is loaded via ajax