Remove size parameters to use height and width instead. In jQuery size is a deprecated function that replace length property rather than a heightXwidth object
Fixed a bug where a reference to jQuery instead of $ was made.
Added a dummy pix
Added strict mode.
Fixed resize who guessed that image size was taking the whole post size