add window callback to jquery image position code