Fixed issue where jQuery ran before images loaded

Images aren't loaded when using a (window).ready event, switching to
.load() allows all images to load prior to running the jQuery.
Fixed PHP Notice for undefined indexes