ui/ajaxpager: deal with unloaded images better: make sure image is loaded before running transition code