I need to apply this to images that are selected by jQuery selector for example $(\"img\"), should apply this to all images in page.
There is a tutorial at
http://jqueryfordesigners.com/image-loading/
that you would want to supplement with an each() loop in $("img")