Cleanning up jquery handling of image loads